﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RearLivestock.Common.Domains.hq
{
    /// <summary>
    /// 猪只销售
    /// </summary>
    public class Sales
    {
        /// <summary>
        /// 主键id
        /// </summary>
        [Key]
        public int SaleId { get; set; }
        /// <summary>
        /// 耳号
        /// </summary>

        public int BasicInforId { get; set; }
        /// <summary>
        /// 成交价(元)
        /// </summary>
        public decimal SaleSumMoney { get; set; }
        /// <summary>
        /// 定价(元)
        /// </summary>
        public decimal SaleMoney { get; set; }
        /// <summary>
        /// 折扣
        /// </summary>
        public string ? SaleDiscount { get; set; }
        /// <summary>
        /// 等级
        /// </summary>
        public string ? SaleClass { get; set; }
        /// <summary>
        /// 品种
        /// </summary>
        public int SaleType { get; set; }
        /// <summary>
        /// 性别
        /// </summary>1
        public string ? SaleSex { get; set; }
        /// <summary>
        /// 猪只类型
        /// </summary>
        public int PigTypeId { get; set; }
        /// <summary>
        /// 繁殖状态
        /// </summary>
        public string ? SaleReproduction { get; set; }
        /// <summary>
        /// 栋舍
        /// </summary>
        public int BedroomId { get; set; }
        /// <summary>
        /// 栏位
        /// </summary>
        public int FieldId { get; set; }
        /// <summary>
        /// 出生日期
        /// </summary>
        public DateTime SaleTime { get; set; }
        /// <summary>
        /// 出生重(kg)
        /// </summary>
        public string ? SaleKg { get; set; }
        /// <summary>
        /// 断奶重
        /// </summary>
        public string ? SaleDn { get; set; }
        /// <summary>
        //父号
        /// </summary>
        public string ? FatherEarNumber { get; set; }
        /// <summary>
        /// 母号
        /// </summary>
        public string ? MotherEarNumber { get; set; }
        /// <summary>
        /// 月龄
        /// </summary>
        public string ? SaleOld { get; set; }

    }
}
